{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##### ❇️ Pandas 🐼 Styling"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "df = pd.read_csv('stocks2.csv').sample(frac = 0.5)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<style type=\"text/css\">\n",
       "#T_65ee9_row0_col1, #T_65ee9_row0_col2, #T_65ee9_row0_col3, #T_65ee9_row0_col4, #T_65ee9_row1_col5, #T_65ee9_row5_col0 {\n",
       "  background-color: green;\n",
       "}\n",
       "#T_65ee9_row1_col1, #T_65ee9_row1_col2, #T_65ee9_row1_col3, #T_65ee9_row1_col4, #T_65ee9_row2_col5, #T_65ee9_row4_col0 {\n",
       "  background-color: magenta;\n",
       "}\n",
       "#T_65ee9_row2_col4, #T_65ee9_row5_col2 {\n",
       "  background-color: red;\n",
       "}\n",
       "</style>\n",
       "<table id=\"T_65ee9\">\n",
       "  <thead>\n",
       "    <tr>\n",
       "      <th class=\"blank level0\" >&nbsp;</th>\n",
       "      <th id=\"T_65ee9_level0_col0\" class=\"col_heading level0 col0\" >date</th>\n",
       "      <th id=\"T_65ee9_level0_col1\" class=\"col_heading level0 col1\" >open</th>\n",
       "      <th id=\"T_65ee9_level0_col2\" class=\"col_heading level0 col2\" >high</th>\n",
       "      <th id=\"T_65ee9_level0_col3\" class=\"col_heading level0 col3\" >low</th>\n",
       "      <th id=\"T_65ee9_level0_col4\" class=\"col_heading level0 col4\" >close</th>\n",
       "      <th id=\"T_65ee9_level0_col5\" class=\"col_heading level0 col5\" >volume</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th id=\"T_65ee9_level0_row0\" class=\"row_heading level0 row0\" >12</th>\n",
       "      <td id=\"T_65ee9_row0_col0\" class=\"data row0 col0\" >2015-08-06</td>\n",
       "      <td id=\"T_65ee9_row0_col1\" class=\"data row0 col1\" >40.950000</td>\n",
       "      <td id=\"T_65ee9_row0_col2\" class=\"data row0 col2\" >40.960000</td>\n",
       "      <td id=\"T_65ee9_row0_col3\" class=\"data row0 col3\" >39.910000</td>\n",
       "      <td id=\"T_65ee9_row0_col4\" class=\"data row0 col4\" >40.120000</td>\n",
       "      <td id=\"T_65ee9_row0_col5\" class=\"data row0 col5\" >1932226</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th id=\"T_65ee9_level0_row1\" class=\"row_heading level0 row1\" >0</th>\n",
       "      <td id=\"T_65ee9_row1_col0\" class=\"data row1 col0\" >2014-06-30</td>\n",
       "      <td id=\"T_65ee9_row1_col1\" class=\"data row1 col1\" >57.500000</td>\n",
       "      <td id=\"T_65ee9_row1_col2\" class=\"data row1 col2\" >57.760000</td>\n",
       "      <td id=\"T_65ee9_row1_col3\" class=\"data row1 col3\" >57.180000</td>\n",
       "      <td id=\"T_65ee9_row1_col4\" class=\"data row1 col4\" >57.440000</td>\n",
       "      <td id=\"T_65ee9_row1_col5\" class=\"data row1 col5\" >1314906</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th id=\"T_65ee9_level0_row2\" class=\"row_heading level0 row2\" >5</th>\n",
       "      <td id=\"T_65ee9_row2_col0\" class=\"data row2 col0\" >2014-04-14</td>\n",
       "      <td id=\"T_65ee9_row2_col1\" class=\"data row2 col1\" >53.190000</td>\n",
       "      <td id=\"T_65ee9_row2_col2\" class=\"data row2 col2\" >53.249000</td>\n",
       "      <td id=\"T_65ee9_row2_col3\" class=\"data row2 col3\" >52.307500</td>\n",
       "      <td id=\"T_65ee9_row2_col4\" class=\"data row2 col4\" >nan</td>\n",
       "      <td id=\"T_65ee9_row2_col5\" class=\"data row2 col5\" >2840577</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th id=\"T_65ee9_level0_row3\" class=\"row_heading level0 row3\" >4</th>\n",
       "      <td id=\"T_65ee9_row3_col0\" class=\"data row3 col0\" >2014-11-07</td>\n",
       "      <td id=\"T_65ee9_row3_col1\" class=\"data row3 col1\" >41.390000</td>\n",
       "      <td id=\"T_65ee9_row3_col2\" class=\"data row3 col2\" >41.480000</td>\n",
       "      <td id=\"T_65ee9_row3_col3\" class=\"data row3 col3\" >40.860000</td>\n",
       "      <td id=\"T_65ee9_row3_col4\" class=\"data row3 col4\" >40.930000</td>\n",
       "      <td id=\"T_65ee9_row3_col5\" class=\"data row3 col5\" >2458734</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th id=\"T_65ee9_level0_row4\" class=\"row_heading level0 row4\" >3</th>\n",
       "      <td id=\"T_65ee9_row4_col0\" class=\"data row4 col0\" >2016-11-08</td>\n",
       "      <td id=\"T_65ee9_row4_col1\" class=\"data row4 col1\" >45.480000</td>\n",
       "      <td id=\"T_65ee9_row4_col2\" class=\"data row4 col2\" >45.959900</td>\n",
       "      <td id=\"T_65ee9_row4_col3\" class=\"data row4 col3\" >45.320000</td>\n",
       "      <td id=\"T_65ee9_row4_col4\" class=\"data row4 col4\" >45.620000</td>\n",
       "      <td id=\"T_65ee9_row4_col5\" class=\"data row4 col5\" >2136740</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th id=\"T_65ee9_level0_row5\" class=\"row_heading level0 row5\" >8</th>\n",
       "      <td id=\"T_65ee9_row5_col0\" class=\"data row5 col0\" >2014-04-08</td>\n",
       "      <td id=\"T_65ee9_row5_col1\" class=\"data row5 col1\" >54.210000</td>\n",
       "      <td id=\"T_65ee9_row5_col2\" class=\"data row5 col2\" >nan</td>\n",
       "      <td id=\"T_65ee9_row5_col3\" class=\"data row5 col3\" >53.820000</td>\n",
       "      <td id=\"T_65ee9_row5_col4\" class=\"data row5 col4\" >54.660000</td>\n",
       "      <td id=\"T_65ee9_row5_col5\" class=\"data row5 col5\" >1842491</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n"
      ],
      "text/plain": [
       "<pandas.io.formats.style.Styler at 0x180b45900>"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# highlighting min, max and NaN values\n",
    "df.style.highlight_min(color='green').highlight_max(color = 'magenta').highlight_null()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<style type=\"text/css\">\n",
       "#T_de326_row0_col1, #T_de326_row0_col2, #T_de326_row0_col3, #T_de326_row0_col4, #T_de326_row1_col5 {\n",
       "  background-color: #fff7fb;\n",
       "  color: #000000;\n",
       "}\n",
       "#T_de326_row0_col5 {\n",
       "  background-color: #9ab8d8;\n",
       "  color: #000000;\n",
       "}\n",
       "#T_de326_row1_col1, #T_de326_row1_col2, #T_de326_row1_col3, #T_de326_row1_col4, #T_de326_row2_col5 {\n",
       "  background-color: #023858;\n",
       "  color: #f1f1f1;\n",
       "}\n",
       "#T_de326_row2_col1 {\n",
       "  background-color: #0872b1;\n",
       "  color: #f1f1f1;\n",
       "}\n",
       "#T_de326_row2_col2 {\n",
       "  background-color: #0c74b2;\n",
       "  color: #f1f1f1;\n",
       "}\n",
       "#T_de326_row2_col3 {\n",
       "  background-color: #1278b4;\n",
       "  color: #f1f1f1;\n",
       "}\n",
       "#T_de326_row2_col4, #T_de326_row5_col2 {\n",
       "  background-color: #000000;\n",
       "  color: #f1f1f1;\n",
       "}\n",
       "#T_de326_row3_col1 {\n",
       "  background-color: #fbf4f9;\n",
       "  color: #000000;\n",
       "}\n",
       "#T_de326_row3_col2 {\n",
       "  background-color: #fbf3f9;\n",
       "  color: #000000;\n",
       "}\n",
       "#T_de326_row3_col3 {\n",
       "  background-color: #f7f0f7;\n",
       "  color: #000000;\n",
       "}\n",
       "#T_de326_row3_col4 {\n",
       "  background-color: #f8f1f8;\n",
       "  color: #000000;\n",
       "}\n",
       "#T_de326_row3_col5 {\n",
       "  background-color: #0570b0;\n",
       "  color: #f1f1f1;\n",
       "}\n",
       "#T_de326_row4_col1 {\n",
       "  background-color: #c8cde4;\n",
       "  color: #000000;\n",
       "}\n",
       "#T_de326_row4_col2 {\n",
       "  background-color: #c0c9e2;\n",
       "  color: #000000;\n",
       "}\n",
       "#T_de326_row4_col3 {\n",
       "  background-color: #bbc7e0;\n",
       "  color: #000000;\n",
       "}\n",
       "#T_de326_row4_col4 {\n",
       "  background-color: #b9c6e0;\n",
       "  color: #000000;\n",
       "}\n",
       "#T_de326_row4_col5 {\n",
       "  background-color: #62a2cb;\n",
       "  color: #f1f1f1;\n",
       "}\n",
       "#T_de326_row5_col1 {\n",
       "  background-color: #0567a1;\n",
       "  color: #f1f1f1;\n",
       "}\n",
       "#T_de326_row5_col3 {\n",
       "  background-color: #0566a0;\n",
       "  color: #f1f1f1;\n",
       "}\n",
       "#T_de326_row5_col4 {\n",
       "  background-color: #046097;\n",
       "  color: #f1f1f1;\n",
       "}\n",
       "#T_de326_row5_col5 {\n",
       "  background-color: #b0c2de;\n",
       "  color: #000000;\n",
       "}\n",
       "</style>\n",
       "<table id=\"T_de326\">\n",
       "  <thead>\n",
       "    <tr>\n",
       "      <th class=\"blank level0\" >&nbsp;</th>\n",
       "      <th id=\"T_de326_level0_col0\" class=\"col_heading level0 col0\" >date</th>\n",
       "      <th id=\"T_de326_level0_col1\" class=\"col_heading level0 col1\" >open</th>\n",
       "      <th id=\"T_de326_level0_col2\" class=\"col_heading level0 col2\" >high</th>\n",
       "      <th id=\"T_de326_level0_col3\" class=\"col_heading level0 col3\" >low</th>\n",
       "      <th id=\"T_de326_level0_col4\" class=\"col_heading level0 col4\" >close</th>\n",
       "      <th id=\"T_de326_level0_col5\" class=\"col_heading level0 col5\" >volume</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th id=\"T_de326_level0_row0\" class=\"row_heading level0 row0\" >12</th>\n",
       "      <td id=\"T_de326_row0_col0\" class=\"data row0 col0\" >2015-08-06</td>\n",
       "      <td id=\"T_de326_row0_col1\" class=\"data row0 col1\" >40.950000</td>\n",
       "      <td id=\"T_de326_row0_col2\" class=\"data row0 col2\" >40.960000</td>\n",
       "      <td id=\"T_de326_row0_col3\" class=\"data row0 col3\" >39.910000</td>\n",
       "      <td id=\"T_de326_row0_col4\" class=\"data row0 col4\" >40.120000</td>\n",
       "      <td id=\"T_de326_row0_col5\" class=\"data row0 col5\" >1932226</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th id=\"T_de326_level0_row1\" class=\"row_heading level0 row1\" >0</th>\n",
       "      <td id=\"T_de326_row1_col0\" class=\"data row1 col0\" >2014-06-30</td>\n",
       "      <td id=\"T_de326_row1_col1\" class=\"data row1 col1\" >57.500000</td>\n",
       "      <td id=\"T_de326_row1_col2\" class=\"data row1 col2\" >57.760000</td>\n",
       "      <td id=\"T_de326_row1_col3\" class=\"data row1 col3\" >57.180000</td>\n",
       "      <td id=\"T_de326_row1_col4\" class=\"data row1 col4\" >57.440000</td>\n",
       "      <td id=\"T_de326_row1_col5\" class=\"data row1 col5\" >1314906</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th id=\"T_de326_level0_row2\" class=\"row_heading level0 row2\" >5</th>\n",
       "      <td id=\"T_de326_row2_col0\" class=\"data row2 col0\" >2014-04-14</td>\n",
       "      <td id=\"T_de326_row2_col1\" class=\"data row2 col1\" >53.190000</td>\n",
       "      <td id=\"T_de326_row2_col2\" class=\"data row2 col2\" >53.249000</td>\n",
       "      <td id=\"T_de326_row2_col3\" class=\"data row2 col3\" >52.307500</td>\n",
       "      <td id=\"T_de326_row2_col4\" class=\"data row2 col4\" >nan</td>\n",
       "      <td id=\"T_de326_row2_col5\" class=\"data row2 col5\" >2840577</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th id=\"T_de326_level0_row3\" class=\"row_heading level0 row3\" >4</th>\n",
       "      <td id=\"T_de326_row3_col0\" class=\"data row3 col0\" >2014-11-07</td>\n",
       "      <td id=\"T_de326_row3_col1\" class=\"data row3 col1\" >41.390000</td>\n",
       "      <td id=\"T_de326_row3_col2\" class=\"data row3 col2\" >41.480000</td>\n",
       "      <td id=\"T_de326_row3_col3\" class=\"data row3 col3\" >40.860000</td>\n",
       "      <td id=\"T_de326_row3_col4\" class=\"data row3 col4\" >40.930000</td>\n",
       "      <td id=\"T_de326_row3_col5\" class=\"data row3 col5\" >2458734</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th id=\"T_de326_level0_row4\" class=\"row_heading level0 row4\" >3</th>\n",
       "      <td id=\"T_de326_row4_col0\" class=\"data row4 col0\" >2016-11-08</td>\n",
       "      <td id=\"T_de326_row4_col1\" class=\"data row4 col1\" >45.480000</td>\n",
       "      <td id=\"T_de326_row4_col2\" class=\"data row4 col2\" >45.959900</td>\n",
       "      <td id=\"T_de326_row4_col3\" class=\"data row4 col3\" >45.320000</td>\n",
       "      <td id=\"T_de326_row4_col4\" class=\"data row4 col4\" >45.620000</td>\n",
       "      <td id=\"T_de326_row4_col5\" class=\"data row4 col5\" >2136740</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th id=\"T_de326_level0_row5\" class=\"row_heading level0 row5\" >8</th>\n",
       "      <td id=\"T_de326_row5_col0\" class=\"data row5 col0\" >2014-04-08</td>\n",
       "      <td id=\"T_de326_row5_col1\" class=\"data row5 col1\" >54.210000</td>\n",
       "      <td id=\"T_de326_row5_col2\" class=\"data row5 col2\" >nan</td>\n",
       "      <td id=\"T_de326_row5_col3\" class=\"data row5 col3\" >53.820000</td>\n",
       "      <td id=\"T_de326_row5_col4\" class=\"data row5 col4\" >54.660000</td>\n",
       "      <td id=\"T_de326_row5_col5\" class=\"data row5 col5\" >1842491</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n"
      ],
      "text/plain": [
       "<pandas.io.formats.style.Styler at 0x181e35150>"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#Color the background in a gradient style.\n",
    "df.style.background_gradient()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<style type=\"text/css\">\n",
       "#T_a96db_row0_col0, #T_a96db_row0_col1, #T_a96db_row0_col2, #T_a96db_row0_col3, #T_a96db_row0_col4, #T_a96db_row0_col5, #T_a96db_row1_col0, #T_a96db_row1_col1, #T_a96db_row1_col2, #T_a96db_row1_col3, #T_a96db_row1_col4, #T_a96db_row1_col5, #T_a96db_row2_col0, #T_a96db_row2_col1, #T_a96db_row2_col2, #T_a96db_row2_col3, #T_a96db_row2_col4, #T_a96db_row2_col5, #T_a96db_row3_col0, #T_a96db_row3_col1, #T_a96db_row3_col2, #T_a96db_row3_col3, #T_a96db_row3_col4, #T_a96db_row3_col5, #T_a96db_row4_col0, #T_a96db_row4_col1, #T_a96db_row4_col2, #T_a96db_row4_col3, #T_a96db_row4_col4, #T_a96db_row4_col5, #T_a96db_row5_col0, #T_a96db_row5_col1, #T_a96db_row5_col2, #T_a96db_row5_col3, #T_a96db_row5_col4, #T_a96db_row5_col5 {\n",
       "  border: 1.3px solid blue;\n",
       "  color: green;\n",
       "}\n",
       "</style>\n",
       "<table id=\"T_a96db\">\n",
       "  <thead>\n",
       "    <tr>\n",
       "      <th class=\"blank level0\" >&nbsp;</th>\n",
       "      <th id=\"T_a96db_level0_col0\" class=\"col_heading level0 col0\" >date</th>\n",
       "      <th id=\"T_a96db_level0_col1\" class=\"col_heading level0 col1\" >open</th>\n",
       "      <th id=\"T_a96db_level0_col2\" class=\"col_heading level0 col2\" >high</th>\n",
       "      <th id=\"T_a96db_level0_col3\" class=\"col_heading level0 col3\" >low</th>\n",
       "      <th id=\"T_a96db_level0_col4\" class=\"col_heading level0 col4\" >close</th>\n",
       "      <th id=\"T_a96db_level0_col5\" class=\"col_heading level0 col5\" >volume</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th id=\"T_a96db_level0_row0\" class=\"row_heading level0 row0\" >12</th>\n",
       "      <td id=\"T_a96db_row0_col0\" class=\"data row0 col0\" >2015-08-06</td>\n",
       "      <td id=\"T_a96db_row0_col1\" class=\"data row0 col1\" >40.950000</td>\n",
       "      <td id=\"T_a96db_row0_col2\" class=\"data row0 col2\" >40.960000</td>\n",
       "      <td id=\"T_a96db_row0_col3\" class=\"data row0 col3\" >39.910000</td>\n",
       "      <td id=\"T_a96db_row0_col4\" class=\"data row0 col4\" >40.120000</td>\n",
       "      <td id=\"T_a96db_row0_col5\" class=\"data row0 col5\" >1932226</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th id=\"T_a96db_level0_row1\" class=\"row_heading level0 row1\" >0</th>\n",
       "      <td id=\"T_a96db_row1_col0\" class=\"data row1 col0\" >2014-06-30</td>\n",
       "      <td id=\"T_a96db_row1_col1\" class=\"data row1 col1\" >57.500000</td>\n",
       "      <td id=\"T_a96db_row1_col2\" class=\"data row1 col2\" >57.760000</td>\n",
       "      <td id=\"T_a96db_row1_col3\" class=\"data row1 col3\" >57.180000</td>\n",
       "      <td id=\"T_a96db_row1_col4\" class=\"data row1 col4\" >57.440000</td>\n",
       "      <td id=\"T_a96db_row1_col5\" class=\"data row1 col5\" >1314906</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th id=\"T_a96db_level0_row2\" class=\"row_heading level0 row2\" >5</th>\n",
       "      <td id=\"T_a96db_row2_col0\" class=\"data row2 col0\" >2014-04-14</td>\n",
       "      <td id=\"T_a96db_row2_col1\" class=\"data row2 col1\" >53.190000</td>\n",
       "      <td id=\"T_a96db_row2_col2\" class=\"data row2 col2\" >53.249000</td>\n",
       "      <td id=\"T_a96db_row2_col3\" class=\"data row2 col3\" >52.307500</td>\n",
       "      <td id=\"T_a96db_row2_col4\" class=\"data row2 col4\" >nan</td>\n",
       "      <td id=\"T_a96db_row2_col5\" class=\"data row2 col5\" >2840577</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th id=\"T_a96db_level0_row3\" class=\"row_heading level0 row3\" >4</th>\n",
       "      <td id=\"T_a96db_row3_col0\" class=\"data row3 col0\" >2014-11-07</td>\n",
       "      <td id=\"T_a96db_row3_col1\" class=\"data row3 col1\" >41.390000</td>\n",
       "      <td id=\"T_a96db_row3_col2\" class=\"data row3 col2\" >41.480000</td>\n",
       "      <td id=\"T_a96db_row3_col3\" class=\"data row3 col3\" >40.860000</td>\n",
       "      <td id=\"T_a96db_row3_col4\" class=\"data row3 col4\" >40.930000</td>\n",
       "      <td id=\"T_a96db_row3_col5\" class=\"data row3 col5\" >2458734</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th id=\"T_a96db_level0_row4\" class=\"row_heading level0 row4\" >3</th>\n",
       "      <td id=\"T_a96db_row4_col0\" class=\"data row4 col0\" >2016-11-08</td>\n",
       "      <td id=\"T_a96db_row4_col1\" class=\"data row4 col1\" >45.480000</td>\n",
       "      <td id=\"T_a96db_row4_col2\" class=\"data row4 col2\" >45.959900</td>\n",
       "      <td id=\"T_a96db_row4_col3\" class=\"data row4 col3\" >45.320000</td>\n",
       "      <td id=\"T_a96db_row4_col4\" class=\"data row4 col4\" >45.620000</td>\n",
       "      <td id=\"T_a96db_row4_col5\" class=\"data row4 col5\" >2136740</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th id=\"T_a96db_level0_row5\" class=\"row_heading level0 row5\" >8</th>\n",
       "      <td id=\"T_a96db_row5_col0\" class=\"data row5 col0\" >2014-04-08</td>\n",
       "      <td id=\"T_a96db_row5_col1\" class=\"data row5 col1\" >54.210000</td>\n",
       "      <td id=\"T_a96db_row5_col2\" class=\"data row5 col2\" >nan</td>\n",
       "      <td id=\"T_a96db_row5_col3\" class=\"data row5 col3\" >53.820000</td>\n",
       "      <td id=\"T_a96db_row5_col4\" class=\"data row5 col4\" >54.660000</td>\n",
       "      <td id=\"T_a96db_row5_col5\" class=\"data row5 col5\" >1842491</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n"
      ],
      "text/plain": [
       "<pandas.io.formats.style.Styler at 0x180b45e40>"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Making table borders blue with text color as green.\n",
    "df.style.set_properties(**{'border': '1.3px solid blue',\n",
    "                          'color': 'green'})"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "env_twitter",
   "language": "python",
   "name": "env_twitter"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
